package com.salts.Dao;

import com.salts.domain.dto.OrderCount;
import com.salts.domain.po.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository//交由Spring容器管理
public interface OrderInfoMapper {
    List<OrderCount> getOrderCount(Integer userId);

    List<OrderInfo> getOrderInfoByUserId(int id, Integer orderState);



    Boolean updaeOrderState(Integer state, Integer orderId);

    Boolean updateOrderAddress(String address, String provinceName, String cityName, String areaName, Integer orderId);

    boolean orderRefund(Integer orderId);

    OrderInfo getOrderInfo(Integer orderId,Integer userId);

    int insertOrderInfo(OrderInfo orderInfo);

    List<OrderInfo> queryList(OrderInfo orderInfoPo);
    List<OrderInfo> queryListByState(Integer userId,List<Integer> states,List<Integer> clothIds);

    List<OrderInfo> queryMap(Map<String, Object> orderInfoPo);
}
